var form;
layui.use(['form', 'layer'], function () {
    form = layui.form;
    var layer = layui.layer;
    $("#wancheng").click(function () {
        let val = form.val("formfilter");
        console.log(val)
        $.ajax({
            type: 'post',
            url: '/advanced/edittree',
            data: val,
            dataType: 'json',
            success: function (res) {
                parent.refresh();
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            }
        })
    })
});